//
// NotificationMessage.cs
//
// Copyright (C) 2008 Lukas Lipka  <lukaslipka@gmail.com>
//

using System;
using System.Xml;
using System.Xml.Serialization;
using System.Collections.Generic;

namespace Dashboard
{
	public class NotificationMessage : Message
	{
		private string title = null;
		private string text = null;
		private string icon = null;

		private int timeout = -1;

		public NotificationMessage ()
			: base ("/event/notification/message")
		{
		}

		public NotificationMessage (string title, string description)
			: this ()
		{
			this.title = title;
			this.text = description;
		}

		public string Title
		{
			get { return title; }
			set { title = value; }
		}

		public string Text
		{
			get { return text; }
			set { text = value; }
		}

		[XmlAttribute]
		public string Icon
		{
			get { return icon; }
			set { icon = value; }
		}

		[XmlAttribute]
		public int Timeout
		{
			get { return timeout; }
			set { timeout = value; }
		}
	}
}
